/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-12-10     xu       the first version
 */
#ifndef APPLICATIONS_AMAP_LOCATION_API_H_
#define APPLICATIONS_AMAP_LOCATION_API_H_

#include <rtdef.h>
#include <stdint.h>

struct location_info {
    const char* province;
    const char* city;
    const char* adcode;
    const char* rectangle;
};

typedef struct location_info* amap_location_info_t;

struct ip_address {
    char ip[20];
};

typedef struct ip_address ip_address_t;

int wan_ip_address_get(ip_address_t* ip);

amap_location_info_t amap_location_get();
void amap_location_delete(amap_location_info_t loc);

#endif /* APPLICATIONS_AMAP_LOCATION_API_H_ */
